﻿using System;
using TianShu.Modularity;
using TianShu.MultiTenancy;
using TianShu.SqlSugarCore;
using TianShu.SqlSugarCore.Configs;
using TianShu.TenantManagement.Dal.Abstracts;

namespace Test.DAL.Abstracts
{
    [DependsOn(
        typeof(TianShuSqlSugarCoreModule),
        typeof(AbpMultiTenancyModule),
        typeof(TianShuTenantManagementDalAbstractsModule)
        )]
    public class TestDALAbStractsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {

            EntityAssemblyStaticSetting.Assemblies.Add(typeof(TestDALAbStractsModule).Assembly);
            Configure<SugarAutoGeneratorTableOptions>(opt =>
            {
                opt.Add(typeof(TestDALAbStractsModule));
                opt.CreateDatabase();
            });
        }
    }
}
